---
title: "Interface ICache&lt;T> | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Common.Caching/ICache`T`/"
---

# Interface ICache<T>

> * `System.IDisposable.Dispose`

# Interface ICache&lt;T&gt;

###### **Namespace**: [Aurigma.DesignAtoms.Common.Caching](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Common.Caching.md)

###### **Assembly**: Aurigma.DesignAtoms.dll

```csharp title="Syntax"
public interface ICache<T> : IDisposable
```

## Inherited Members

## Methods

### Add

```csharp
bool Add(string key, T value)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *key* |  |
| `<T>` | *value* |  |

##### Returns

`System.Boolean`

##### Type Parameters

| Name | Description |
|:---|:---|
| `T` |  |

### Set

```csharp
void Set(string key, T value)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *key* |  |
| `<T>` | *value* |  |

##### Type Parameters

| Name | Description |
|:---|:---|
| `T` |  |

### Get

```csharp
T Get(string key)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *key* |  |

##### Returns

`<T>`

##### Type Parameters

| Name | Description |
|:---|:---|
| `T` |  |

### Remove

```csharp
void Remove(string key)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *key* |  |

##### Type Parameters

| Name | Description |
|:---|:---|
| `T` |  |

### ClearAll

```csharp
void ClearAll()
```

##### Type Parameters

| Name | Description |
|:---|:---|
| `T` |  |
